package cn.edu.scujcc.customofsichuan;

import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Second_zsh extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second_zsh);
        Toolbar back = findViewById(R.id.back_secondPage_zsh);
        back.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

        View zsh_history = findViewById(R.id.zsh_history);
        View zsh_activity = findViewById(R.id.zsh_activity);
        View zsh_protect = findViewById(R.id.zsh_protect);
        Intent intent=new Intent(this,thirdPage_Detail.class);
        Bundle bundle=new Bundle();

        zsh_history.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                bundle.putString("title","转山会节日溯源");
                bundle.putString("webUrl","file:///android_asset/zsh_history.html");
                intent.putExtras(bundle);
                startActivity(intent);
            }
        });

        zsh_activity.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                bundle.putString("title","转山会活动形式");
                bundle.putString("webUrl","file:///android_asset/zsh_activity.html");
                intent.putExtras(bundle);
                startActivity(intent);
            }
        });

        zsh_protect.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                bundle.putString("title","转山会传承保护");
                bundle.putString("webUrl","file:///android_asset/zsh_protect.html");
                intent.putExtras(bundle);
                startActivity(intent);
            }
        });
    }
}